#!/bin/bash

prefix=demo_
param=$@

if [[ -z $param ]]; then
  param=php;
fi;

case $param in
  admin)
    container=${prefix}phpmyadmin;;
  nginx)
    container=${prefix}nginx;;
  mysql)
    container=${prefix}mysql;;
  *)
    container=${prefix}php73;;
esac;

echo;
echo -e "\033[32m============================== ${param} Container =====================================\033[0m"
echo;

docker exec -it $container /bin/bash




